{% extends "base.html" %}

{% block title %}yourhost开放平台 - 接入yourhost！{% endblock %}

{% block content %}
<div id="root">
    <div class="app-body-main">
        <div class="app-main-box">
            {% include "_app_header.html" with class='home-header-transparent-white' %}
            <div class="ant-spin-nested-loading">
                <div class="ant-spin-container">
                    <div class="app-main-content tt">
                        <div class="doc-no-help" style="overflow: auto;">
                            <div class="search-box">
                                <div class="content"><h3>开发者文档</h3>
                                    <div class="search-input" style="display: none;"><input placeholder="请输入关键词进行搜索"><span class="search-btn">搜索</span>
                                    </div>
                                </div>
                                <img src="/static/images/banner-help.jpg"
                                     alt="banner" class="banner"></div>
                            <div class="four-tab-box">
                                <div class="four-tab">
                                    <div>
                                        <div class="item active">API文档</div>
                                        <div class="item ">SDK下载</div>
                                        <div class="item ">服务端API调试工具</div>
                                    </div>
                                </div>
                            </div>
                            <div class="doc-no-help-detail-api">
                                <div class="header" id="header" style="position: static; padding-top: 26px;">
                                    <div class="left"><img
                                            src=""
                                            alt=""><span class="text">音频接入API</span></div>
                                    <div class="right">
                                        <div class="ant-breadcrumb"><span><span class="ant-breadcrumb-link"><a
                                                href="#"
                                                style="color: rgb(33, 95, 255);">yourhost</a></span><span
                                                class="ant-breadcrumb-separator">/</span></span><span><span
                                                class="ant-breadcrumb-link">音频接入API</span><span
                                                class="ant-breadcrumb-separator">/</span></span></div>
                                    </div>
                                </div>
                                <div class="wrapper clearfix" id="wrapper">
                                    {% include 'help/api/_left_menu.html' %}
                                    <div class="right-content"
                                         style="min-height: 1144px; width: calc(100% - 280px); max-width: 100%;">
                                        {% block contentblock %}
                                        <div class="article">
                                            <div class="title">
                                                <div class="title-text">接口概述<span
                                                        class="update-time"><i>更新时间:</i><i>2019-11-20</i></span></div>
                                            </div>
                                            <div class="content">
                                               <h2>接口概述</h2>
                                               <p>所有API接口都是HTTP接口（全部开启HTTPS），支持的HTTP Method包括GET和POST。</p>
                                                <p>所有API接口的返回数据都是JSON格式（API接口的Content-Type响应头是固定值application/json;charset=UTF-8）。</p>
                                            <p>API接口请求和响应数据使用的编码都是UTF-8。</p>
                                                <h4 id="toc_1">GET API请求</h4>
                                                <p>参数全部带在URL的查询参数中，以key1=val1&amp;key2=val2&amp;...这样的形式表示，最终GET请求url实例如下：</p>
                                                <pre><code>https://wweb.yourhost.com/baidu_dueros/album_list?page=1</code></pre>
                                                <p><span style="font-family:&quot;Chinese Quote&quot;, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size:1em;">测试时，GET请求url可以使用浏览器直接打开，也可以用curl。</span></p>
                                                <h4 id="toc_2">POST API请求</h4>
                                                <p>参数全部带在POST请求Body中。</p>
                                                <p>注意：HTTP POST API请求的Content-Type请求头必须如下设置：</p>
                                                <pre><code>application/x-www-form-urlencoded; charset=UTF-8</code></pre>
                                            </div>
                                        </div>
                                        {% endblock contentblock %}
                                    </div>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>

{% endblock content %}
